package com.example.deepschool.Model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class CourseContent {
	
	@Schema(description = "课程内容项ID")
    private Long id;

    @NotBlank
    @Schema(description = "关联的课程ID")
    private Long courseId;

    @NotBlank
    @Length(min = 1, max = 50, message = "章节标题长度必须在1-50之间")
    @Schema(description = "章节标题",
            minLength = 1,
            maxLength = 50)
    private String chapterTitle;
	
	@Schema(description = "内容链接")
    private String address;
	
	@Schema(description = "上传时间")
    private java.sql.Timestamp uploadTime;
	
	@Schema(description = "最后修改时间")
    private java.sql.Timestamp modifyTime;
}
